package com.planw.beetl.configurable;

import com.intellij.openapi.Disposable;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SearchableConfigurable;
import com.intellij.openapi.roots.ui.configuration.ProjectConfigurable;
import com.intellij.openapi.util.NlsContexts;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class BeetlSettingConfigurable implements SearchableConfigurable, Disposable {

    private BeetlSettingConfiguraForm m_configuraForm = new BeetlSettingConfiguraForm();

    @Override
    public void dispose() {

    }

    @Override
    public @NotNull String getId() {
        return "Beetl";
    }

    @Override
    public @NlsContexts.ConfigurableName String getDisplayName() {
        return getId();
    }

    @Override
    public @Nullable JComponent createComponent() {
        return m_configuraForm.createCenterPanel();
    }

    @Override
    public boolean isModified() {
        return false;
    }

    @Override
    public void apply() throws ConfigurationException {

    }
}
